//定义路由跳转规则
import {createRouter,createWebHashHistory} from 'vue-router'
import detail from '../components/detail.vue'
import list from '../components/list.vue'

let router = createRouter({
    //如何记录历史记录
    history:createWebHashHistory(),
    routes:[
       {
        path: "/list",
        component:list
       },
       {
        path:"/detail",
        component:detail
       }
    ]
});


export default router;